from utils.constants import *


class Config(object):
    """
    配置类，配置数据库信息，类似于mybatis的mybatis-config.xml
    """

    SQLALCHEMY_DATABASE_URI = f"{DATABASE_TYPE}+{DRIVER}://{USERNAME}:{PASSWORD}@{HOST}:{PORT}/{DATABASE_NAME}"

    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_ECHO = True  # 是否在控制台打印SQL语句

    SECRET_KEY = "123456"  # 密钥
